import request from '@/utils/request'

// 查询模型明细列表
export function listModelDetail(query) {
  return request({
    url: '/model/modelDetail/list',
    method: 'get',
    params: query
  })
}

// 查询模型明细详细
export function getModelDetail(modeldId) {
  return request({
    url: '/model/modelDetail/' + modeldId,
    method: 'get'
  })
}

// 新增模型明细
export function addModelDetail(data) {
  return request({
    url: '/model/modelDetail',
    method: 'post',
    data: data
  })
}

// 修改模型明细
export function updateModelDetail(data) {
  return request({
    url: '/model/modelDetail',
    method: 'put',
    data: data
  })
}

// 删除模型明细
export function delModelDetail(modeldId) {
  return request({
    url: '/model/modelDetail/' + modeldId,
    method: 'delete'
  })
}
